fixing compatibility with postgis 2.0.0