Include headers for definition of htons, fix compiler warning