Currently common and hdfs SO files end up under lib/ dir with all JARs, they should end up under lib/native.
In addition, the hadoop-config.sh script needs some cleanup when comes to native lib handling:
- it is using lib/native/$
for the java.library.path, when it should use lib/native.
- it is looking for build/lib/native, this is from the old ant build, not applicable anymore.
- it is looking for the libhdfs.a and adding to the java.librar.path, this is not correct.