OK fixed the awful -lpthread link error on Android -- apparently boinc/api/libboinc_api.a has a refernece to force linkage to -lpthread in the api/Makefile.am -- take it out and it links!