Fix linking properly