fixed linking issues