Fix building net_server and mp_server with mingw