remove dependency to linux malloc