Windows / Visual Studio support

Hi guys,

This is Artem, the memory leak guy :)
These are fixes for Visual Studio 2013, where for the moment it doesn't even compile because of lack of C99 support in VS. Could you please merge these changes into the master branch? It would really make our life easier. 

Thanks in advance,
Artem.

- Updated the Visual Studio 2013 project with a current file list, fixed project dependencies and compile options;
- Made the parser actually compile under MSVC that doesn't have C99 support;
- fixed a crash on Windows / potential memory corruption on other platforms (tokenize.c)