Add --enable-preserve_dylib configure option

Valgrind requires shared objects to be kept open for meaningful
debug information. Add configure option to disable dlclose() in
dylib_close() for Valgrind support.
Merge pull request #926 from mprobinson/valgrind-support-renamed

Add --enable-preserve_dylib configure option