Make global dedupe bits buildable and fix errors.
Rename Adaptive compression type constants to avoid conflict with global constants.