Add Xcode 6 compatibility.

Supports Xcode 6