Fix some additional warnings.

rb_warn takes a format string as the first argument, so give it the `%s`
format string similar to how you would use printf.

The compiler also recommends parenthesis around a comparison.

This finally allows the code to be compiled without error with gcc 4.7
on debian wheezy.