Add header defines etc. to C-API config
Add RARRAY_LENINT like RSTRING_LENINT for 1.9 mode
Move dbm, gdbm and sdbm extensions into language modes

Fixes #2140
Add specs for rb_str_export and rb_str_export_locale
Add rb_str_export and rb_str_export_locale
Update Socket in 2.0 mode