[tz] [PROPOSED PATCH 5/5] Minor library fixes for signed integer overflow.