use jemalloc only in jemalloc major version > 2
update Makefile.am