Fixed compile error on Visual Studio 12.