fixed linking issues.