Now global settings are enclosed in a single global class. You can get an instance of this class using IEGlobalSettings(), so you have to replace:
gDefaultDPIX with IEGlobalSettings().DefaultDPIX gDefaultDPIY with IEGlobalSettings().DefaultDPIY DefGIF_LZWDECOMPFUNC with IEGlobalSettings().DefGIF_LZWDECOMPFUNC DefGIF_LZWCOMPFUNC with IEGlobalSettings().DefGIF_LZWCOMPFUNC DefTIFF_LZWDECOMPFUNC with IEGlobalSettings().DefTIFF_LZWDECOMPFUNC DefTIFF_LZWCOMPFUNC with IEGlobalSettings().DefTIFF_LZWCOMPFUNC