compile and statically link lua