Core/Packets: Add connection indexes for server packets
Fixed IOCP define for linux
Minor code style change in inventory loading