further progress in debugging bmp fwrite oddity