Fix build issues for Cygwin

modified:   CMakeLists.txt