compile SANITIZE_THREAD with gcc