Fix compile on BSD systems
lua : update to latest version of LuaAutoC
Fix Lua update (an API change was missed)

I hope that this is correct.
Merge pull request #644 from mneumann/fix-compile-bsd

Fix compile on BSD systems
Fix Linux build