Make it compatible with VS2012