Fix compiling for xcode 6