Bug 851439 - The paramter of _open_osfhandle() is intptr_t instead of long. r=jimm