The most recent version of Lua I can use with visual studios is 5.1. However I cannot find 5.1 for MinGW, but I can have 5.2.