Fixing deprecation warnings. The code only checks for these deprecated properties in order to provide proper warnings.