use global to pass compression progress

before this change threads could compete and the progress bar would jitter
report texture cache size, and use buttons to rebuild and clear cache
Merge branch 'master' of https://github.com/OpenCPN/OpenCPN
Merge pull request #221 from seandepagnier/master

Improvements to texture cache user interface