fix for gcc 4.7 bug with template friend class