fixed linking script