Fix SDL2, Emulationstation and RetroArch compilation.