Use bool in cli for booleans instead of int

The cli uses a number of int's for control flags. Check for the presence
of stdbool.h in configure, use the bool type if available and fall back
to defining them.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>