luarocks: fix with-luajit not finding lua headers

Closes #26004.
Closes #25954.

Signed-off-by: Brett Koonce <koonce@gmail.com>