Marked memcmp/strcmp as "pure" functions, to allow gcc to optimise