Fix method declaration for older versions of clang++