Made example-ae work again

Fixed the recent change to `aeCreateEventLoop()` and added the missing jemalloc and pthread libraries.