luarocks: fix with-luajit not finding lua headers

There's probably a better way to do this, but fixes #25954.