Poco::BasicEvent improvements and preparations for future support of lambdas/std::function