Fix windows compatibility, fixes #1