Fix omnibus pg gem installation for Debian/Ubuntu, also install server packages before trying to install the pg gem, otherwise pg_config is never found.

Also install server packages at compile time in ruby.rb, otherwise pg_config is never installed nor found