Integrate JNA 4.0.0. Fix event union usage.