Fix newlib toolchain build on Mac OS
Fix newlib toolchain build on Mac OS

Tested on OS 10.7.5.  glibc toolchain is still broken, seemingly due to
Mac OS's version of sed.

manuelafm/riscv-gnu-toolchain,manuelafm/riscv-gnu-toolchain,manuelafm/riscv-gnu-toolchain