Redefining term-attrs-[io]speed[-set!] in terms of accessor functions,
cfgetispeed, cfgetospeed, cfsetispeed and cfsetospeed, instead of
non-portable field names.
Checking for __GNU_LIBRARY__ to use random_r.