copy from dlmalloc in uclibc