MB-11443 Make stdin and stdout binary for spawned processes on windows

On windows, we are not able to read the binary header due to text mode
on stdin and the compactor exits with error. Now we swiched to binary
mode for stdin and stdout on windows.

Change-Id: I9ec8c6f115a0eadeddccb08ac1270ea9587a2a92
Reviewed-on: http://review.couchbase.org/38786
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: buildbot <build@couchbase.com>