luacrypto: refactor with autotools

CMake stuff comes from LuaDist, CMake is not the primary build infrastructure of LuaCrypto.