Fix package finder scripts for Jemalloc and Hoard
when using jemalloc simply bundle it
Unify memory allocation calls accross the library
Merge pull request #1430 from vigsterkr/develop

Unify memory allocation calls accross the library