fix compilation for Indigo/Trusty
update to newest globals.icc

* copied current globals.icc from upstream 3dtk project (SVN r941)
* no functional changes; adds some more functions, fixes some warnings