Fix errno negation and vfork flags in glibc