Use custom memmem function unless OS provides memmem