test patch workaround htole use in static context