libc: fix build after cortex-a10 merge

4e358 along with dc297 break memchr. Partially revert the later.

Change-Id: I165a7e01fedec3ceeed71e23ed9b7b2e34f35c10