Changes for Lua5.2 and Boost 1.52 compatibility