Fix lib references