Move *loaded-libraries* definition before it's used.