lua: revert previous change

Revert previous modification to build lua for Darwin and Linux
platforms differently. Build both platforms identically.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>