Fix various CYGWIN problem.