Misc fixes

I compiled Dolphin with clang and went from there.