Make it compile and link under windows.