Workaround crashes on FreeBSD with ruby 1.9

This avoids the segfaults somewhere inside ncursesw/wgetch()...