Add NativeFunction() constructor to allow invoking native functions through libffi