fixed build deps
make clean does not fails if already clean
do not use libconfig++ if the API is just libconfig

also fixed type incoherence (long / int)