added logging; build script now compiles lua with downloaded mingw