Implement deprecated attribute for msvc12.