fix multiple forward declarations to the same type