client: Support cmake test for RTLD_NEXT.