Added dllimport to getservbyname and getserbyport. Also updated ioctl to match CPython