Make ScriptingCore.cpp compile with C++11 on iOS

When compiling with clang -stdlib=libc++ -std=c++11, write, read, and close functions are part of the unistd.h header file.
Merge pull request #1991 from SevInf/patch-1

fixed #1729: Making ScriptingCore.cpp compiled fine with C++11 on iOS