JNA: Update to 5.13.0 for ARM compatibility v2
Currently, terminal support is broken on macOS and Linux on AARCH64, because JNA 3.3.0 does not support this architecture. Update the library to the latest version, which supports AARCH64 and enables terminal support.
Tested to enable terminal support on AARCH64 macOS with JDK 21 and Linux with JDK 11. Tested on AARCH64 Windows with JDK 21 to not cause regressions (terminal support is equally broken before and after the change).
V2: Fix deprecation and other warnings introduced by updating JNA. This may make the code incompatible with previous versions of the library.