WIP making UI code work with SDL 2.0.