Added epoll_create1 and fixed some bugs