Add full support for replacing application libraries