port libcpp checking fix from https://github.com/mapnik/node-mapnik/pull/238