Support building with SDL 2.x.