[bugfix] Use BOOL instead of bool

Thanks to Christoph Grüninger for pointing this out.