fixed lua dependency on libm