mtrace demo source code from http://munir.wordpress.com/2006/08/05/finding-memory-leaks-using-mtrace/