Update the Quintus Prolog adapter file with dialect `goal_expansion/2` hook predicate definitions for dealing with the different argument order of the built-in predicates `read_term/2-3` and `open/4`