Merge: lib/sdl: workaround to avoid constructor callback bug