Fix linking on sun and aix after r1741.

Patch from tjfontaine!



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