Currently there's no way to enable null-pointer checking
for CNI code. As part of the new ABI we should fix this.
The current plan is to wrap all pointer arguments in
a smart pointer class that, on platforms that require it,
will perform explicit null pointer checks.