Added support for Visual Studio 2013 compilation

see the commits comments