Automatically add include paths for ncurses on Cygwin

See #1453. I'm no expert on build systems, so this should be checked well.