Add INSTALL_NAME_DIR

Change-Id: Iefe298308342af4495d48fd397574b4c62d59878
Reviewed-on: http://review.couchbase.org/29142
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Use time() to init srand()

getpid() isn't available on msvc, and istead of
making a wrapper we can just as well use time()

Change-Id: Id139ec563227eddaeb34ea6d39b15e061fbdbe15