fix integration of macro building and dependency