CMake: Lua DLL is built in the correct folder.

Also removed SCL warnings from MSVC builds.