Add APT_INSTALL_EXTRA variable to extra build packages
This is needed when templates make use of the .thumbnail() method: the build fails unless `imagemagick` is installed. This variable makes it possible to define a list of packages in the project-specific CI config.