make: Add rpath when linking shared objects with a non-standard suffix 

The make generator does not keep track of which targets are shared 
objects and instead relies on a target name ending with ".so". It is 
not uncommon for shared objects to be named like shared_object.so.0.1. 
Changes are unnecessary for the ninja generator, since it keeps track 
of the actual dependency type. 

BUG=gyp:329
Review URL: https://codereview.chromium.org/13133002/

Patch from Martin Robinson <martin.james.robinson@gmail.com>!

git-svn-id: http://gyp.googlecode.com/svn/trunk@1604 78cadc50-ecff-11dd-a971-7dbc132099af
Speculative fix for spurious xcode test failures on the bots.

Filter out "No recorder, buildTask: <Xcode3BuildTask:" lines from stderr
when using Xcode. They seem to be harmless noise.

Change the one custom match() function to use the string/list pattern used
in TestCmd (e.g. match_exact()) to make this reliably work.

BUG=chromium:181012
Review URL: https://codereview.chromium.org/13207004

git-svn-id: http://gyp.googlecode.com/svn/trunk@1605 78cadc50-ecff-11dd-a971-7dbc132099af