Adjust errno.h in a compatible fashion to avoid -Wredundant-decls issues. I have run a build to check the tree for places where errno.h is missing, and fixed the cases I found, but there might be more in MD code.