Added Windows support, requires MinGW with pdcurses.