Improve multiple compiler link flag handling.