Fix for issue introduced in #1132

This removes the use of attr_accessor, it may not be available. It looks like the ordering of the prerequisites can be different between systems and that sometimes causes class.rb to be introduced into the irep after attr_accessor is needed.