build: fix cocoa configure check on OS X 10.7

It failed because the 10.7 SDK doesn't natively support array and dictionary
subscripting.