ADDED: pqApplication, and aligned to swipl-win sources