Fix memset for 4.8.x compilation issue