configure: Add check_builtin convenience function