Changes needed to compile under cygwin