fix issue with "cannot allocate an array of constant size 0" on Windows / MSVC compiler