build on android

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.
Merge pull request #83 from abeluck/master

android build patches