Fixed debug compilation + add libconfig as dependency