Fixed: print correct function name on error report.
Replace event dispatching with poll system call.

To avoid additional libraries dependencies, we replace the
implementation of event dispatching from boost.asio by POSIX standard
poll function.