Fixes AttributeError on win32.  Closes #58