added support for windows, some wrapping needed tho

ncurses == pdcurses
some unistd functions needed to be wrapped to use on windows and linux