fixed building of resources whose dependencies have not been built