Added support for lua and sqlite for mingw target.