make sure dlsym(RTLD_DEFAULT,...) can see symbols in own object group
return 1 instead of -1 on error. noticed by theo.
add more complex tests for dlsym. some tests may change after morediscussion.