fixes xCode 6 build