Here is patch after incorporating review comments.
@@ -170,6 +175,8 @@ There is no need to add the native libs that have been softlinked to the LD_LIBRARY_PATH, they are already being added to the 'java.library.path' property.
On second thought, adding the directories that may have stuff that is not native libs at all, kind of does not make senese to add them blindly. Since the users can provide symlinks in the cwd for the cached libraries. This is not necessary. I removed the code which adds parent directories of all mapred.cache.localFiles
You should get the current value of LD_LIBRARY_PATH (actually to do it properly you should check if you are in windows or unix and get the proper env variable) and append to it the current working dir.
LD_LIBRARY_PATH is honored by Cygwin, though not by windows. And we support only Cygwin. So, we dont need a check for windows explicitly for LD_LIBRARY_PATH environment variable.