Changing cmake to add libevent dependency