build: fix constness in address-of-member-method compilation warning with newer osx clang c++ compiler