Fix compilation errors on Windows

Fix the following compilation errors on Windows:
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
error C2133: 'enScopeName' : unknown size