avoid using stdbool.h to support compilers without C99 support