HADOOP-11410. Make the rpath of libhadoop.so configurable (cmccabe)
(cherry picked from commit fb20797b6237054f3d16ff94a665cbad4cbe3293)