Portability fixes (partially submitted by Daniel Stirnimann):

- document (in the Makefile) how to build on Solaris
- replace timegm() with setenv("TZ")/tzset()/mktime()
- use our own stpcpy() (taken from FreeBSD's libc)
- use strchr() instead of index()
- use memset() instead of bzero()