Build lua lib in make file.

Change make file to build lua lib under mac osx and linux env.