Core/Loot: Fix master loot

Players will be able to open the loot window and see the items in case of master loot.
If the item is under threshold FFA applies, else the item becomes locked.

Also fix an exploit related to master loot item give.
Core/Loot: Implement round robin for under threshold items in case of master loot

Thanks @Shauren for pointing out
Core/Transports: Fixed creatures micro movement on transport when attacking something (fixes interrupting melee animation)
Core/Misc: Fix some static analysis issues

Add some asserts and additional NULL checks as sanity checks.
Scripts/Spells: fix logic fail in q9874
Merge pull request #11761 from MitchesD/misc

Scripts/Spells: fix logic fail in q9874
Core/Misc: Fix some static analysis issues

Fix some static analysis issues about:
- uninitialized values, most of which are false positives, always initialized before being accessed
- unchecked return values
- dead code never executed
- bad formatting leading to wrong behavior

Please ensure EventMap is never used with event id set to 0 or those events will never execute.
DB/SAI: Fix startup error

By untaught, closes #11587
Core/Spells: Fixed crash happening when a spell script set target to NULL in OnObjectTargetSelect hook for spells using nearby target selection
Core/Map: Save weather, light and music overrides in map to send them to players logging in
Core/Transports: Fixed crashes happening when a transport was despawned with players/dynamicobjects on it
Core/Spells: Fixed target selection hooks running twice for each effect if both target A and B were using the same hook type (OnObjectAreaTargetSelect, OnObjectTargetSelect, OnDestinationTargetSelect)
Scripts/ZulAman/Halazzi: convert text to create_text and fixed despawn of cat
Core/Transports: Enabled LoS on transports
Merge pull request #11763 from MitchesD/misc

Scripts/ZulAman/Halazzi: convert text to create_text and fixed despawn of cat
Scripts/Icecrown Citadel: Icecrown Gunship Battle
Fixed build without PCH
Buildsystem/GCC: Enforce version 4.7.2 and enable c++11 compilation
Core/Misc: Removed unused defines, added missing include and removed a few warnings
Scripts/Icecrown Citadel

* Deathbringer Saurfang will now evade if any player stands on the gunship
* Fixed players being stuck in combat after defeating gunship
* Fixed players not sticking to gunships