Fix Cygwin configuration warnings/errors
completed by: Steven Kou
mentors: Sean
This is a task to address the CMake errors that prevent configuration from completing successfully. Fix all errors and warnings that are encountered.
This is a follow-on task to http://www.google-melange.com/gci/task/view/google/gci2012/7961226