Enable jemalloc under option. Create additional option that sets flags appropriate for use with linux perf. Tested with jemalloc on linux and macos.