add 'umd2' libraryTarget for optional amd dependancies as globals