Fixed bugs and warnings found on Windows. Added PDCurses for Win.