All right, I fixed my problem . Adding 'dl' to uses clause in lua.pas and moving liblua5.1.so to \usr\lib directory did the trick.

I have tested luaootest, cotest and cotest2. The first two run fine, the third gave me Lua Exeption error. (No number guessing game :cry: )