Fix build on Windows

patch by Paul Colomiets

fix #186