Add conditional code to handle differences between 10.8 and 10.9