Changes to get unix/ port compiling on Cygwin.