Define cross-platform bool type

* broker/lib.h (bool_t): new type
  (TRUE, FALSE): new macros
* broker/lib.c (_val_init, _val_mid, safeascii, safe121): modified to use bool_t