Updated to use fixed-width types and use the "mem_units" member if it is available