Fixed linking on windows.