More fixes to the Quintus Prolog adapter file