CBD-762: add missing os and sys imports

Change-Id: Ia6f2b299ef4780f562a696ef2898a1992e985f59
Reviewed-on: http://review.couchbase.org/23914
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>