[libosmocore PATCH 02/12] build: simplify headers management and remove recursion