fix LD_LIBRARY_PATH for firefox.

* add dbug
* use libpng12 instead of libpng
* remove needless trailing slashes