Add support for building with different lua versions
