Add a macro to compute dependency to import only needed package