Fix postgis support