Add checks for lpeg/cmsgpack lua packages

These checks will stop the build process with meaningful error messages if
any of those packages are not installed.