Fix linking on Linux