Replace bzero() with memset()

This fixes the build with MinGW, which doesn't have bzero.

In addition, POSIX mentions that memset() is preferred over bzero() for
portability reasons.