Use Cocoa's MIN macro instead of C++

Makes Cocoa developers feel a little more at home