added check for SDL version on mac versions