Fixed bugs on Windows and added the windows binary.