MSVC is C89 and doesn't allow mixed declarations and statements
Merge pull request #5 from tonycoz/fix-win32

MSVC is C89 and doesn't allow mixed declarations and statements