Make functions static and use M_ZERO instead of a separate bzero.