Fix lib build