Workaround to load native Hadoop libraries. Java doesn't allow native libraries to be loaded from different
classloaders. But we load Hadoop classes many times and one of these classes -
NativeCodeLoader - tries
to load the same native library over and over again.
To fix the problem, we force native library load in parent class loader and then "link" handle to this native
library to our class loader. As a result, our class loader will think that the library is already loaded and will
be able to link native methods.