Fix initialization of Hadoop native code