Adding features from osmocom-bb to libosmocore