Another improvement to the benchmark code
Made some casts explicit to try to fix compile errors on some systems