fixed linking problems