- fix pointer cast messages for encode/decode calls
- fix out_total_written missing dereferencing
- update patch
- update makefile