On the Bohr compactification