Private module imports take precedence

For module Needs imports, give private module exports a
higher priority than runtime library (lib) imports. Doesn't
affect scripts, which use in-order precedence already.

See http://issue.cc/r3/1998 for details.