Set -L and -R globally (for cmake)

Change-Id: I837d47725078bd6b7f88498e7c907c019a77608b
Reviewed-on: http://review.couchbase.org/28664
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>