Fixed tolua++ 64-bit Mac Os X build when LuaJIT is enabled.

The tolua++ executable segfaults when it is generated without proper linker flags.