compiler macro for unused variables

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
rework memory management

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>