make c-api compile (and link) with LuaJIT
Merge branch 'master' into linker-tricks

Conflicts:
	c-api/compat-5.2.c