Update deployment target and avoid -firstObject.

Causes warnings on older OSes.