Merge pull request #1047 from tklein23/master

Small hack to fix double-free in StreamingSparseFeatures
lua52 fix
Merge pull request #1056 from crunchiness/master

Fixed interface for Lua 5.2