Merge pull request #1136 from Howaner/GlobalFixes

Send statistics to the player on login.
Fixed offline UUID generator.

It generated invalid UUIDs, too many hex chars.
Fixed respawning

* Fixes #1103
Fixed tolua linking order.

Ref.: #1044.
Fixed cFile compilation under MinGW.
Fixed lua compilation under MinGW.
Fixed size_t printfing under MinGW.
Added dependecy of tolualib on lua
typo
Fixed linking order under MinGW.

Ref.: #1044
Ignore Code:::Blocks project files.
Proper sqlite dependency fix.
Merge pull request #1140 from mc-server/FixMingw

Fix mingw