Auto add missing libraries