SDL: fix build on Mavericks

Closes #22294.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>