Use os.File.Sync.
Merge pull request #111 from mattn/windows

Build on windows