Restore support for Prolog proprietary meta-directives after changes to the compiler stages