Install postgres at run-time instead of compile-time

See http://stackoverflow.com/a/9495135
Ensure apt is up to date