Fix for creating IDs for roles on 64bit unix systems

Fixed a bug causing the admin role not get initialized properly after new
installations on 64bit unix systems.
Reason is the way the database ID is generated for roles: the crc32()
functions is used on the role's key.
In 64bit unix environments this function may return values bigger than
signed 32bit, causing an out of range error on the database.
Added a workaround so that crc32() function only returns 32bit values.
Fix: Blank alliance for corps without alliance

Fixed an error causing corporations without alliance to be assigned to an
alliance with a blank name.
Fix: Blank alliance for corps without alliance part 2
Added sanity check for external corp/pilot IDs

Added a sanity check when getting/returning external corporation or pilot
IDs to prevent the killboard from querying entity information for invalid
IDs (characterSheet for moons/systems from older kills of POSs/POCOs or
CorporationInfo for factions).
Fix: Copy/Paste error in zKB fetch for involved factions

Fixed a copy/paste error in zKB fetch for involved parties without
corporation but with a faction.