Fix osx configuration