build: adjust build rules for Android
Android's libc (bionic) includes pthreads in the library and does not require linking against any special libraries. Indicate this to the Threads
package so that it does not attempt to push the -pthread
flag which has no meaning on that target.