Gets citra compiling on OSX

~~Don't merge yet. This is to provide an opportunity for comments on the progress of the port, and to see what Travis thinks of it.~~

It should be completely mergeable at this point.