added compile2 for cygwin