Make conditional compilation more granular
Close second FD in cap_rights_limit() wrapper