Improved performance for STM32F4 and LM4F120, fixed debug flags