Windows and Mac usage fixes.

Fixed few things that I encountered while using goem on Mac and Windows.

I am a very bad boy and fixed straight to master, sorry.