configure: allow checking multiple functions in check_func_headers()