renamed file
use lua 5.2 API whenever possible
Files for lua 5.2
add linker flags
remove added functions, not used anyway