fix compile error using local type Plugin* in Channel's constructor