Fix: Declare all variables before statements in a function.
     Likewise, place all function prototypes before statements.
     These changes support Microsoft Visual Studio 2008 Express Edition,
       which follows C89-style rules.
Merge pull request #29 from bjones1/master

C89 patch for MS Visual Studio 2008 Express Edition