add flags for mac os 10.6