Force native_long mode.

Without native_long enabled, the cursor ID turned into a floating point number
which didn't (exactly) match with the real cursor ID.
Merged pull request #479