SDL: updated for darwin