SERVER-14105 Improve support for building with various sanitizers