Place lua and dtviev after setting CFLAGS