Compatibility updates.

  We can now build on Mac OS X and DragonFly, with either Lua
 5.1 or 5.2
  Build with Lua 5.2 too.

  lua_open was removed and must be added as a macro.