Should fix build on Windows. See #167.
Also, speeds up operations on Windows considerably.