put local -L flags first in link commands