Fix linkage under windows.