Fixes to make sysconfig (almost) work in a clean VM.