Fix the ray test to compile more portably