Support Qt5. Fix cbor bug