Fix linking on Windows