Workaround c++1y bug of clang/gcc/glibc. Fix ioctl() on solaris. http->https