lib: avoid ICE on Linaro