android build patches

Android's libc lacks several functions required by tlsdate, so I've
dropped implementations of them in src/android and conditionally included
them where necessary.