Attempting to get around the varargs C functions (ioctl and fcntl) using a bridging header. Some success, some other issues with other C functions though