Support building on Cygwin

See BUILDING.cygwin.md for details