cocoa: fix building with the macOS 10.7 SDK (thanks Riccardo!)

Fixes bug #4368
1 file changed