compatibility fixes for older Macs