move flags to libipsc.h; change callback type to ssize_t in ipsc_epoll_wait

Signed-off-by: Roman Yeryomin <roman@advem.lv>