Open FDs with O_CLOEXEC.

Noticed we have this patch in openSUSE and there is no reason it would not be upstreamed.

So please take look :)