Use r+b not ab for fopen_boost so that we get the behaviour we wanted.