Use C99 bool type for truth values