Fix rand() errors with #include. Fix wrong comparison in Server.cpp