Fix build with non-framework SDL 2 issue on OS X

* Don't hard coding SDL execution name.
* Linking Cocoa's library.

I'm not tested on PowerPC Mac, hope it can build.