Include inner packages when scanning for provided packages.

Also, added lib/ to @INC when scanning for provided packages.
This helps Module::Build get the right VERSION for modules that
compute their VERSION by loading it from some other module in
the same distribution;
Add diag_prefix, for distinguishing diag messages from regular output.