Fix passive pets not using spells when commanded to attack

Closes #8941
Core/SmartScripts: Check Conditions also for timed Events
* some cleanup work in SmartScripts.cpp

Core/SmartScripts: Some Corrections to last commit
Too small buffer fail
Expand ~ to home directory on unix
Tools/MeshExtractor: Removed shared and MySQL dependencies.
Merge pull request #9008 from krofna/krefixes

Too small buffer fail
DB/mmaps: Rename mmap commands related sql
Tools/Extractors: Mmap extractors no longer depend on shared and MySQL libraries
Core/Objects: Changed how update fields marked for sending are stored serverside to use our UpdateMask class
Tools: Build fix
Tools/MapExtractor: Fix displaying of a few counts in Windows

%zu works fine on GCC/Linux, but fails in MSVC/Windows
Tools: Build fix, for real this time
Tools/MeshExtractor: Fix warnings
DB/SAI: Fix more some db errors no.4
Update more copyright note for 2013.
Core: Fix compile warnings
Core: Fix build
Core: Yet another warning fix

@Kaelima: could you verify MoveCharge?
Merge pull request #9020 from krofna/krafixes

Core/ConfigReader: Expand ~ as the HOME envvar on UNIX-based platforms (requries that the HOME envvar has been set, it normally is)
Core/Spell: convert more spells to SpellScripts