include <ruby/debug.h> instead of declare functions.
change error message.