Fixed some compilation error on MSVC in CHAP and CTOC frames support.