Pass the wiredtiger_extension_init function a (WT_CONNECTION *) instead of a (WT_SESSION *, WT_EXTENSION_API) pair.