fix #14: gcc 4.7 compile errors

- add this->functionName if we inherit from a template argument
  and access methods from this BaseClass