fix init order warnings
add missing sdl func to headless stubs