Fix loading modules from an absolute path on Windows.

Don't check the module path using Linux-style path checking.

Issue #11165: https://github.com/ariya/phantomjs/issues/11165
Fire `onResourceReceived` callback when the resource error occured.

Issue #11163: https://github.com/ariya/phantomjs/issues/11163
Flush in `File::write` when in unbuffered "text" mode

If the wrapped `QFile` was opened with `QIODevice::Unbuffered`, any
writes should be unbuffered.  However, as currently implemented,
using `QTextStream` when the `File` is in "text" mode causes all
reads/writes to be buffered.

This modification forces a flush in `File::write` if the wrapped
`QFile` was opened with `QIODevice::Unbuffered`.

Necessary to fix issue #11162 https://github.com/ariya/phantomjs/issues/11162.
Use UTF-8 encoding for std{in,out,err}

This fixes issue #11162.

`File` constructor takes a `QTextCodec *`, codec; but, if codec is
`NULL`, then it assumes "binary" mode, which causes non-ASCII
characters to be converted to NUL (`\0`) in `File::write`.

This change passes the codec for UTF-8 to the `File` constructor for
the `std{in,out,err}` instances, thus opening them in *text mode*.
Fix command line option typo

Issue #11219: https://github.com/ariya/phantomjs/issues/11219
ChangeLog: Update with backported fixes.