Fix extension build system