Next time please send the patches to me (matze-^-braunis.de) I maintain the linux port of glest but I don't have the time to regularily check the forums! I would apreciate it if you would send me copies of patches/bug reports per e-mail.
(Anyway I have a very similar fix in svn now as I didn't know about your work here)