lib: avoid ICE on linaro 8.12