fix OSX build against 10.6 sdk