Fixed some linking issues.