fix some php warnings (and use local gprolog path