Search for shm_open in librt

* Newer GNU libc contains clock_gettime, so check for shm_open in
  librt also