Fix compile for windows.