Fixed undeclared variable in MSVC compile function;
Added MSVC support for Visual Studio 2013
Merge pull request #5 from awm/master

Minor MSVC fixes and improvements