Haiku: Add 32/64 bit support

* Change handles on the java side to "long /*int*/".
* Use the respectively types on the native side.