Initialize std::functions with nullptr instead of NULL.