Add ufo_resources_get_kernel_with_opts