fixed check on compiler
cleaned up IAR project