Add support for passing the libctx to the config loader