Fix so it compiles correctly on Visual Studio 2013

This fixes a bug when compiling on visual studio 2013