Fix for compilation on Mac OS X

explicitly call sed with LC_ALL=C to prevent errors on Mac OS X with non-C locale