add osx-arch-fix for ruby-1.8.6, fix #2377