make libconfig dependency optional