improve ability to use require from sysimg.jl

these changes allow `require` to work while (after) building the sysimg

@JeffBezanson any concerns with this before merging?