move SAM_lua to more generic lib_lua libary