Tested and fixed compiling dynamic library in Visual Studio 2013

Also simplified process of compiling code base in Windows.