append rather than prepend cairo paths to ensure that internal/local paths come first as per the last configure sort by priority
further fixup the sparsehash usage internally