Fix linking on linux