Patched up relative file references for libraries.