Remove check for WINDOW type in curses.h

From configure script, because it didn't work for OS X and cygwin.

Thanks to filterfalse.
Merge branch 'remove-window-type-check'