Fix bcopy()/bzero() #define hack

Replace #define bcopy(...) memset(...) with inline functions only if
bcopy() is unavailable, as checked by configure script

Ditto bzero()
Refactor: move read_symlink() from log.c to os.c