fixed (hopefully) IAR compatibility issues