fix to compile for windows