compile as SHARED library and add LD_PRELOAD on the script to force extrae library be loaded first