Fix tox errors under OS X
Fix a couple of Cocoa compilation warnings