Add include <algorithm> to allegro.cpp and gen_chroma.cpp for min and max