postgis 2 fixes