Some small fixes for advanced compilation
Added disable of server related tools when server disconnect