swi-prolog: install to libexec and wrap

swi-prolog does not like being called through a symlink, so don't

Fixes #24323.