pngtool: flush stdout to prevent truncated output on win32