Update build system.
Move elevated testing constants.
[#1461] Clean compat constants.