Apply OSX patch from origin PR#70.