coreutils: Make it build on OSX 10.0.8

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