ONBUILD support

Includes an `update.sh` script and the necessary improvements to `generate-stackbrew-library.sh`.