add missing predefined constants, implement RbConfig properly