Compile native method invocation