Added a flag to build imported packages when the user wants to, instead of all the time.