Remove some unixism

Change-Id: I85705cd5fdf969e333ac1dd4618f3d177cec2979
Reviewed-on: http://review.couchbase.org/30556
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>