made changes to get compiling on android

removed mem, we wont use this