Allow lua5 to build as a dylib on Darwin
Merge pull request #2261 from jwiegley/lua5

Allow lua5 to build as a dylib on Darwin