Support boost 1.46.

io_service::stopped() isn't available in this version.