Transfer to scons; Add lua5.2 support; Fix bug of the example;