Fix JNA union usage for JNA 4.0.0.