Reducing lfs compatibility to 1.4.0.
Remove C++ platform detection.
No need to require luarocks
Using io.popen and uname to guess platform.