atlbase not needed. Interim fix until I get png done.
more warning fixes
build fix
Use libpng for saving images.
TODO: Needs threading done similiar to OGL backend.
Fixes issue 6779.
More warning fixes, OSX build fix.
Fixed ZComploc and Zfreeze values being incorrectly saved.