cmake/FindLua*: provide Lua version

Introduce changes in FindLua51.cmake found in CMake 2.8.11.2. Adapt
formatting such that our modifications can easily be detected.
packages.mk: move CMake with CUDA patch to 2.8.11.2
CMake configuration: be verbose about library versions

The library versions help us interpreting possible issues on the
Dashboard from automatic test runs.

Move detection of CUDA compiler before searching for libraries. Both
steps are independent and this keeps the compiler stuff together.