make build of web component optional (use --flag web) and remove some warnings