Fix server class for windows service