Some Safari compatibility changes