fix compiler errors for Xcode 6.1