Added compatibility for VS2010