attempt to fix compiler errors on cygwin

Hopefully fixes #24