tests: When checking for NDN_CPP_HAVE_STD_FUNCTION, also check NDN_CPP_WITH_STD_FUNCTION. Refs #1065.