Use -DHAS_BOOL with all compilers

Should fix builds under Linux and BSD.