added tracemem to build scripts