I don't think it makes sense to use 4095, that number comes from Linux's kernel-user space ABI. MinGW targets link against the MSVC runtime, we should use `_sys_nerr`. http://reviews.llvm.org/D6558