Add check for shm_open() since these functions quite often are located in librt