Fix compilation for newer JNA