improved compatibility with gcc
matrix benchmark fix