[SPARK-1720][SPARK-1719] use LD_LIBRARY_PATH instead of -Djava.library.path

- [X] Standalone
- [X] YARN 
- [X] Mesos
- [X]  Mac OS X
- [X] Linux 
- [ ]  Windows
 
This is another implementation about #1031
Sorry, the right should be 
http://stackoverflow.com/questions/8922224/multiple-commands-on-a-single-line-in-a-windows-batch-file