lua: refactor install steps
lua: honores BR2_PREFER_STATIC_LIB

fix compilation with Blackfin FLAT

see http://autobuild.buildroot.net/results/b41/b4146bf821d59f694546f6e3a341394cc8fa43ce/
luajit: honores BR2_PREFER_STATIC_LIB