Fix for compilation for VS 2012