Reorder lines so declaration comes first to prevent compiler error on Windows.
Merge pull request #238 from perroe/fix_varible_decl_windows

Reorder lines so declaration comes first to prevent compiler error on Windows