ui.backend.cocoa.views: fix build error on older OSX versions.
ui.backend.cocoa.views: add platforms.txt.