Fix for C89 compilers. In compilers that only support C89 the variables must be declared first.
Merge pull request #16 from bryanmcconkey/master

Fix for C89 compilers