avoid an extra stack allocation on windows