clang seems to insist on linking in the system libubsan even when we're compiling with -nostdlib.
Current workaround is to link the final executable with ld instead of cc when not using LTO, but that complicates our Makefile since the flags are different.