Consistently use CInt rather than Int for FDs