Fix unexpected wrong env values when linking against old OS X SDKs