[Fix] Compiler error on dynamic lib (image not loaded)

Signed-off-by: Miguel M. Almeida <miguelcma@gmail.com>