this should probably be dlfcn  but i am not sure  it might be better to split this into another file  and call it something like pthread dlfcn test cpp to indicate this is really a test that is also testing dl related functionality 