tweak the pthread test
tweak the pthread test

- first try to compile without -lpthread
- then on platforms other than Android, try to compile with -lpthread
- if this still fails, use the "detect" mechanism

ocsigen/lwt,c-cube/lwt,ocsigen/lwt,ocsigen/lwt,c-cube/lwt,c-cube/lwt