cocoa_common: add OS X 10.7 compatibility hacks includes

I forgot these when I split the code. They will hopefully fix compilation on
10.7.