Fix all the visible compilation issues.