Adding workarounds to optionally use Boehm GC.

--HG--
branch : fythe