Fix library search order to avoid accidentally picking up system libraries

This resulted in really broken Linux builds as the system happened to have
some of the libraries that Frida requires its own versions of.