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.