Fix compile for Windows