C89 compliant variable declaration

Microsoft C compiler supports only C89 and requires variables to be declared before the actual code.