added frames < pages, linux link fix for shm_open