[LIBS] Add the general purpose allocator for special purpose memory (genalloc).

This patch adds the basic general purpose allocator for allocating special
purpose memory (memory that is not managed by the regular malloc/free
interface).
This is used for the port of SRAM allocation driver.

Signed-off-by: Jimmy Durand Wesolowski <jimmy.durand-wesolowski@openwide.fr>