fix for variable size array problem in Windows compiler