Fixed name resolution problems.

Needed to add “this->” for name resolution within base classes.  This
wasn’t an issue in older versions of gcc, which is more permissive.