Add Lua 5.1 backward compatibility
Fix SHARE_LIOLIB mode for Lua 5.1
Fix SHARE_LIOLIB mode for Lua 5.2
Add DESTDIR support to Makefile