memset is defined in cstring header
jpeg9 requires TRUE, not true

the field is boolean, not bool
copy correct number of bytes in encode_exif()