heppdt: correctly find the lib from --with-xyz