mem.h in wolfcrypt, compatibility layer