Add IAR and Keil support, fix some compile errors and warnings. And add _Progma for structure packed issue.