lua52, install lua.hpp

Install lua.hpp (used for C++ code that uses luajit) and luajit.h (included by lua.hpp)

Also, enable 5.2 compatibility for good things like non-braindead xpcall.

See https://github.com/torch/torch7/pull/54 which modifies torch7 to work with 5.2 compatibility.