fixes for Freescale MQX, CodeWarrior GCC