Implement deprecated attribute for msvc compilation.