C++ bit operations are logical. Fix FTBFS bugs.