run the io_service on multiple threads
fixes for multi-threading