Fixed build errors and updated IAR project files.

Signed-off-by: Olli Vanhoja <olli.vanhoja@ninjaware.fi>