Fix incorrect lib linking.