cmake: Make GCC undefined sanitizer work with static build.
cmake: Make GCC undefined sanitizer work with static build.

clang-5 works fine without in my testing, though it throws up a ton of
other warnings due to inconsistency in fallthrough warning flags.

ShiftMediaProject/game-music-emu,ShiftMediaProject/game-music-emu,ShiftMediaProject/game-music-emu