Add stage-specific AS variables to the build system