use __builtin_debugtrap() for clang, __debugbreak() for MSVC
minor stuff
make sure we don't try to print to console after shutdown.
small hack to fix briefing palette switching, remove old broken hacks
makefile fixes