mem: fixes for compiler warnings