Declare OGR_ENABLED=1. Fixes Geometry toJSON().