Add plugin to generate libraries file on build