Fix linking on Darwin