Better library linking