Made os::system async signal safe.

Review: https://reviews.apache.org/r/20127
Added a few methods for net::MAC and net::IP.

Review: https://reviews.apache.org/r/19982