fix postgis support

closes #35