Compile fixes for Cygwin (issue #25)