Fixed lib to use ncursesw.

This should work in most modern distros