Fix namespace issues in base/functional.h