SHAPELIB use variable, fix typos