1.8.7 compatibility

make connection_pool 1.8.7 compatible. drop usage of `require_relative`, instead adding to `$LOAD_PATH` as needed; use compatible hash syntax; use Object if BasicObject is not defined.