Make jna4 compatible