Updated minimum OS version and fixed deprecation warnings.