waf: add a way to select a lua version
configure: add deprecation warning