Fix warnings on ncursesw-ruby 1.2.4

This is the commits needed to fix the warnings of the 1.2.4 version of the gem, in case we stay with 1.2.4 and leave 1.3.0 for later.

Also included in #3.