* Use boost::asio to get hostname for the portability

For better portability.