Bump minimum OS X version to 10.6 and update deprecated APIs.