Updated the Cocoa detection in SDL so it uses needed compiler flags allowing it to complete the test and include the necessary files to work on MacOS.