Fixed linking issues.