makefile updates to link against jemalloc

(also use EPOLL when on linux)