add -lpthread and cleanup libs of cpoll