Support custom definitions integration in ruby-build.

Depends upon https://github.com/sstephenson/ruby-build/pull/614