configure: check for pthread_attr_setinheritsched()

Rely on default thread inheritance when not found.
configure: check for endgrent()
platform: work around missing symbol guard

Issue #17
Merge pull request #18 from kodabb/android2

Further android fixes