Support extra definitions paths via RUBY_BUILD_DEFINITIONS

/cc @parkr

Fixes #608, alt. to #609