This commit removes the pain from most 64-bit OS X users when compiling and running TFS
New ItemType functions.

ItemType:getClientId() is necessary for OTClient purposes.
Add Item.getWeight
Mana drain now counts as damage

This provides a more accurate most damage calculation against vocations
who rely on mana shield.
Pass creature userdata instead of id to onTileCombat
Merge pull request #1060 from conde2/New-ItemType

New ItemType functions.
Merge pull request #1054 from godely/master

LuaJIT support on 64-bit OS X
Fix attributes bug
Minor cleanup
Use max_allowed_packet in DBInsert

Use max packet length from MySQL in DBInsert class to know when it is
appropriate to execute the query
Remove old comment in Database class
Lua changes

You can now access Creature & Item userdata with these keys, "itemid",
"uid", "actionid" and "type".

Item.transform should not debug the client when setting the id to 0, it
does nothing in that case now.
Merge pull request #1062 from ninjalulz/itemGetWeight

Add Item.getWeight
Initial commit for non-blocking SQL queries
Optimize playerdeath.lua
More stuff for non-blocking SQL queries (lua)
Small fix
Remove unused variable
Callbacks for any async database function
Use non-blocking SQL queries to check for expired market offers