Added ntohl and htonl functions for Windows.