fixed:
entity.hpp:366: error: a class-key must be used when declaring a friend
entity.hpp:366: error: friend declaration does not name a class or function