Fixed compile bug on Windows