fixed compatibility with current ofBase types.

It seems that a lot of the ofBase types are different to what you're working against (const correctness, const and non-const getters, dropping Ref suffixes etc.). so code wasn't compiling (bless the new override keyword and pure virtual methods!). I've fixed these.