fix compiling jruby 1.8 mode on maven, update #2233
make the named ruby check patches and flags
move jruby compatibility_flag to build_config
add --2.1 flag
use branch instead of compilation flag for selecting compatibility mode, update #2233