(Android) Wrap pthread calls