Ahaggar: fix GCC errors and warnings

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>