ALL: Fix valgrind errors
APU: Remove some unused code
ALL: Introduce display drivers
SETTINGS: Move log channels to settings

This removes the last external variable used by the core
GBA: Build display as a C module
SDL: Switch to SDL2