Add old leopard code since most recent code uses 10.6 APIs