Replace BOOL with bool.

The only places where BOOL is left are those where they are required by
the ABI.