Fix sizeof-pointer-mem* (memaccess && memcpy) errors