fix compile failed on server