added code to walk global variable list, so the sizes of these types can be adjusted