Fix for JNA not allowing empty arrays