Revert "fixed loading of libs"

This reverts commit 050c3e0a94651600ac84560f999346524e3f276b.