Added fixes for eCos