jruby: drop unnecessary loop
pbrt: add flex dep