Fixing compile problem on Mac with bool