fixed #46 (the other errors are due to ncurses)