Adding compatibility with xCode 6