Bug #66840: Fix broken build when extension built separately