Merge branch 'V5-4-patches' into V5-5-patches

* V5-4-patches:
  Remove C99 length specifier 'z' and use a cast instead