Rewrite the loader file to use the best compiler options on both Logtalk 2.x and Logtalk 3.x