changes to compile in cygwin