Make it compile with VS2010 and 2012