Update the server platform's `detect.py` to match x11's
Update the server platform's `detect.py` to match x11's

This adds support for LTO, UBSAN/ASAN/LSAN, debugging symbols options
and `optimize=size` in the `server` platform.

guilhermefelipecgs/godot,DmitriySalnikov/godot,DmitriySalnikov/godot,vkbsb/godot,Faless/godot,MarianoGnu/godot,Faless/godot,okamstudio/godot,firefly2442/godot,vkbsb/godot,vkbsb/godot,honix/godot,Zylann/godot,ex/godot,ZuBsPaCe/godot,godotengine/godot,BastiaanOlij/godot,godotengine/godot,Faless/godot,sanikoyes/godot,honix/godot,Zylann/godot,ex/godot,okamstudio/godot,josempans/godot,akien-mga/godot,ex/godot,MarianoGnu/godot,pkowal1982/godot,BastiaanOlij/godot,josempans/godot,vnen/godot,pkowal1982/godot,akien-mga/godot,godotengine/godot,okamstudio/godot,pkowal1982/godot,vkbsb/godot,honix/godot,pkowal1982/godot,ZuBsPaCe/godot,ZuBsPaCe/godot,okamstudio/godot,Paulloz/godot,guilhermefelipecgs/godot,MarianoGnu/godot,Shockblast/godot,firefly2442/godot,akien-mga/godot,firefly2442/godot,honix/godot,sanikoyes/godot,firefly2442/godot,Valentactive/godot,vnen/godot,Valentactive/godot,ZuBsPaCe/godot,guilhermefelipecgs/godot,MarianoGnu/godot,firefly2442/godot,MarianoGnu/godot,DmitriySalnikov/godot,vnen/godot,BastiaanOlij/godot,firefly2442/godot,godotengine/godot,pkowal1982/godot,akien-mga/godot,godotengine/godot,Faless/godot,sanikoyes/godot,okamstudio/godot,vnen/godot,Paulloz/godot,BastiaanOlij/godot,Zylann/godot,sanikoyes/godot,godotengine/godot,akien-mga/godot,godotengine/godot,Zylann/godot,Faless/godot,sanikoyes/godot,groud/godot,Shockblast/godot,pkowal1982/godot,honix/godot,pkowal1982/godot,akien-mga/godot,ex/godot,groud/godot,groud/godot,josempans/godot,Paulloz/godot,sanikoyes/godot,Faless/godot,Faless/godot,Shockblast/godot,Shockblast/godot,ex/godot,vnen/godot,BastiaanOlij/godot,DmitriySalnikov/godot,Paulloz/godot,Zylann/godot,Paulloz/godot,okamstudio/godot,guilhermefelipecgs/godot,okamstudio/godot,firefly2442/godot,BastiaanOlij/godot,Shockblast/godot,Shockblast/godot,BastiaanOlij/godot,DmitriySalnikov/godot,Valentactive/godot,Valentactive/godot,groud/godot,josempans/godot,Zylann/godot,vkbsb/godot,DmitriySalnikov/godot,vnen/godot,akien-mga/godot,Shockblast/godot,ZuBsPaCe/godot,Faless/godot,DmitriySalnikov/godot,Paulloz/godot,Valentactive/godot,ZuBsPaCe/godot,vkbsb/godot,vkbsb/godot,godotengine/godot,groud/godot,BastiaanOlij/godot,akien-mga/godot,ex/godot,Paulloz/godot,ZuBsPaCe/godot,vkbsb/godot,MarianoGnu/godot,MarianoGnu/godot,josempans/godot,Valentactive/godot,guilhermefelipecgs/godot,ex/godot,sanikoyes/godot,firefly2442/godot,josempans/godot,okamstudio/godot,okamstudio/godot,guilhermefelipecgs/godot,guilhermefelipecgs/godot,okamstudio/godot,sanikoyes/godot,vnen/godot,MarianoGnu/godot,Zylann/godot,vnen/godot,pkowal1982/godot,Valentactive/godot,honix/godot,ex/godot,josempans/godot,Valentactive/godot,josempans/godot,Zylann/godot,Shockblast/godot,ZuBsPaCe/godot,guilhermefelipecgs/godot,groud/godot