Fixed for Visual Studio 2013 compiler