Android doesn't have pthreads lib, it uses a flag.

Adding the -lpthreads flag when building with the android toolchain throws an error that the pthreads lib can't be found. Instead, it needs a `-DHAVE_PTHREADS` flag.