Update xtemplate.class.php

As of PHP 5.4 $GLOBALS is now initialized just-in-time