Correct the compiler error 'cannot convert bool to boolean' for MacOsX.