Win32 compatibility fix
Merge pull request #12 from kmx/master

Win32 compatibility fix