Return size_t at methods of Event and Pool

I think they should be size_t. 
Probably should be std:: here and the line below too.