Minor SWI-Prolog adapter file optimization