Firstly add the necessary dylib's and so's so that it will run properly.