t30-common: apply libc optimization

Change-Id: Idd6f8ef8b6e048f2cb57b4a42d52716bda7b9210