Fixed problem in Entity.h

Fixed compile error with the AddCompnent() function in Entity.h