Fix windows compilation - location of variable declaration.
Merge pull request #587 from perroe/windows_compile_fix

Fix windows compilation - location of variable declaration.