backend-c: fixes to deal with search path in IO, copy sources in dep.mk output