For whatever reason building with configure and make leads to symbols
not being found (see https://github.com/termux/termux-packages/issues/7953).
When switching to cmake it seems that libicu and pango are not
considered optional dependencies anymore, so add these to dependecies.