Apple blocks Java on Macs due to vulnerabilities