tsan didn't auto-detect with clang 3.4. Fixed.

Turned on UBSan for all builds by default. Use -DNO_UBSAN=TRUE to disable.