Remove shapelib dependency

Urgent because of the currently running China training course. See commit messages for details.