Fixes for Cygwin gcc builds.