more portable handling of the bool data type (Mac OS X has stdbool.h)