support choosing an alternative malloc implementation

There is a lot of talk about the various malloc implementation (jemalloc/tcmalloc) on the ruby bugtracker.

This allows setting LD_PRELOAD for everything run via rbenv.