fix msc++ compilation error