Fix compatibility issues with rake db:gis:setup