msvc9 compatibility

msvc doesn't like arrays of size 0
Merge pull request #1604 from bbudescu/msvc-compat

msvc9 compatibility