Fix compilation on Apple Silicon
This allows cross-compiling for x86_64 on mac ARM machines, and sets things up for a switch later.
SDL upgrade is necessary for compilation with the GLES headers in different SDKs.
Tested by: langbart, minohaka
Differential Revision: https://code.wildfiregames.com/D4424