More robust concurrent/synchronization code.
Removed pragma pack()s that I don't recall the reason for putting there in the first place...
Removed useless code.
Changed debug code to remove annoying warnings