ENH: Fixes for build on Cygwin for make and cmake