made it compile with visual studio 2013