VS project + fix occasional failures in mat_mul