remvoe dead code, restore rmem.obj in makefile