customization of malloc & threads for compatibility with Boehm GC.

As discussed on the onion-dev mailing list (& google group), this is a suggestion to customize malloc & pthreads to make  libonion more Boehm GC friendly. See http://hboehm.info/gc/