fix compilation error (xcode 6)