Make it possible to load libs from configuration file, fix minor issues