configure: check_func_headers should mark headers as found