libc: fix build after cortex-a10 merge

4e358b along with dc297e break memchr. Partially revert the later.

Change-Id: I165a7e01fedec3ceeed71e23ed9b7b2e34f35c10