Only build required dependencies in bootstrap