Homebrew now uses lua 5.2 by default.

Explicitly require lua 5.1.