Thywin lib

Hotfix for a bug that would on occasion cause not every byte of a thywin package to be send across.