msvc compatibility fix up
Merge pull request #1 from alikh31/alikh31

C99 compatibility fix