Made some minor changes to syscall_memlimit and malloc.