added -Wall and fixed compilation error