Fix library linking.