added small example Lua script
fixed compiling on windows