Fix failure to compile in windows using VS

The VS C Compiler doesn't like defining variables on places other than
the top of the function and doesn't natively support stdint.h.
Merge pull request #14 from mmv/windows-compile

Fix #6 Unable to compile under Windows