Add PackageLoader class

When setting build options in config file, we need to propagate them not
only to package's dependencies, but also the dependencies of the
dependenceis.