Add Ruby 1.9.3 support

- we are using the constantize method instead of Object.const_get as ruby 1.9.3 doesn't allow namespaced constants