Fixed Xcode6 dp6 compiler errors.