Fix initialization order to quiet TreadSanitizer.

This also replaces bzero with the more standard memset().