Attempt at fixing linux crash on player login.

Ref.: http://forum.mc-server.org/showthread.php?tid=1244