Fix to allow compilation on Windows

Fix: Place all variable declarations before statements, since Microsoft Visual
       Studio 2008 (used for compiling Python 2.7 for Windows) doesn't support
       modern C99 syntax.