Server build fixes for Windows