Remove the mem_(m|c|re)alloc functions.
Remove unused headers