Fix compatibility with OS version prior to 10.9