WIP: toward fixing kits with wrapping turned on
The fix in 98f45e95 unfortunately broke compilation with KITS + WRAPPING because in that case we have new symbols in the libs. Without kits we resolve them directly in the module. With kits we have to resolve them in the kit that contains the module instead.
This change is a workaround for Python at least that demonstrate a
path to solution. Should be able to demonstrate by turning on kits and wrapping,
os doesn't matter, and then compiling. HEAD2 will pass, HEAD1 will fail, this
will pass.