Changes for PostgreSQL 9.x/PostGIS 2.x with hstore

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>