Merge pull request #2777 from staticfloat/patchelfoutput

Redirect patchelf scan's stderr to /dev/null, closes #2776
fix #2780
Merge branch 'master' of github.com:JuliaLang/julia
Introduce USE_SYSTEM_RMATH to allow for system-packaged Rmath