Bug fix.
On some lame Linux distro's which ship with beta gcc's
p4.cpp would fail to compile because of a prototype mismatch in the
arguments to the rb_define_method() function (and others). This
change makes use of Ruby's handy RUBY_METHOD_FUNC(func) macro to
make sure the cast is always correct