use shapelib for shapefile IO