My own fix to make it hackily compile
Fixed compilation failure on my machine

Fixed shared records not being populated before the player record is
moved.
Cleaned up my hackish code for WinMain