Make coreutils build on osx 10.0.8

Take patch from: https://lists.gnu.org/archive/html/bug-coreutils/2013-01/msg00119.html