Upstream fix for syscall() not setting errno on errors on MIPS