modify cmakelists for cygwin