Added support for SDL2 and Lua 5.1 system libraries

This time without relying on `lsb_release -is`.