ext/ add some linking flags