Fixed issues with c-runtime, debugp and serial communication funtions.