fix compilation errors
fix warning
add iar msp430 port