Modifications to build on cygwin