[Build][Mac] Fix build with 10.6 sdk