fixed compilation error on gcc

To access a member of a template base class, this-> needs to always be
explicitly specified.  Otherwise the name lookup will fail and the
member will not be found at all.  This is not necessary on msvc.