fix #14: gcc 4.7 compile errors

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