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