[RFC] Properly find or report missing lua-related packages required for the build process

This is a fix for #518 but it will also add checks for lpeg/msgpack lua packages which are also required.

@ZyX-I can you verify if it fixes the build for you?(Provided that the required lua packages are also installed)