Fixes build issues with constants undefined in Release mode.