Split up memwrap functions to mwrapper.cpp