Fix building on Windows

Closes #17