Add support for installing as extension