Changes based on further reading.

* CPATH used for both all langues, simplifies things.
* Appears shouldn't set LD_*_PATH vars via sh but by wrappers.
* LIBRARY_PATH used instead.