Fix linking script