fixed loading of libs