Two small build system update

(I hope I am doing this right on github).
I made two small patches against the makefile.
The first one allows you to override the PREFIX from the cmd.
make PREFIX=/custom/ 

The second, checks if pkg-config if available and if all dependencies are met. 
It aborts the build otherwise.

R,

Q