fixed compilation issue on windows