perf: Fixed compilation on <=gcc-4.6

Added #include <atomic>, changed call of io_service::run