only use OSX framework headers when setting flag