compile fix, oops

also adds some fixes for modulecache