Fixes builds errors on Xcode 6