add PostGIS < 2 support (#124)