[HIVE-5379] NoClassDefFoundError is thrown when using lead/lag with kryo serialization