gcc fixes, keil and bf integration