Adde use_opengl to release builds.
Moved progress control to agg.