libc: fix redundant memchr defines

Change-Id: Ided51d74c35326d3215049fdee312e567a71de36