Dedicated Server fixes

Also, back-ported buildscript.