Fix compilation errors of bools.