Lua and SDL

Some few fixes.

The most important commit is the one which add some extern(c) on lua call back to solve parameter corruptions.

Other commits just add libraries file path to fix loading issues on some platforms.