compiler cleanups for cygwin compile