Fix warning about unused include

When a type is only used in function declaration as pointer or reference, the include is indead useless but add information in the error message that the type must be forward declared