Local fix for LLVM bug 17358.

FreeBSD has a restriction that the write() system call can only write up to INT_MAX (~2GB) bytes and will otherwise return errno 22 (EINVAL). This means that LLVM cannot output IR files larger than 2GB, such as is required for when generating a bitcode version of chrome with debugging info added to all constituent bitcode files (-g). This commit fixes this.