Lua 5.2 support

allow compilation with lua 5.2
in additional add options to disable daemonize