successfully builds on win32.

Fixed a bug in pdcurses and rearranged includes to make MOUSE_MOVED
macro and bool type not conflict with builtins.