Apple patches vulnerabilities in MacOS and iOS