Mac build fix from Win32 port
Merge pull request #13 from luser/mac-fixup

Mac build fix from Win32 port