EXTERNAL_LIBS variable name changed to TRAINING_VARIABLES