Define bool_t correctly if TRUE is defined

Detect if TRUE (and FALSE) are already defined and define bool_t accordingly.

Fix #108