Make framework extension friendly

Enabling the extension compatibility flag does not currently limit the library, but makes it possible to use in extensions.