gettid happens to be supported by all glibc, musl and uclibc, but configure cannot detect it when cross-compiling. This adds a configure variable for it. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>