Automatically set PATH and LD_LIBRARY_PATH

this is inspired by https://github.com/shunjikonishi/heroku-buildpack-ffmpeg/blob/master/bin/compile
Merge pull request #10 from jigfox/patch-1

Automatically set PATH and LD_LIBRARY_PATH