Merge pull request #4301 from ntherning/fix-Mono.Posix-API-breakage