Apply these patches to ur brickos source and then compile it. It works very fine with the modern versions of all softwares like g++4.1 and tcl8.4,tk8.4 and stuff. Have fun..
These seem to be Jochen Hoenicke's patches, though gzipped twice for some reason.
Agree with the earlier commenter--these are Dr. Hoenicke's patches. This and more is incorporated into the Bibo Rollup Release. Please see http://news.lugnet.com/robotics/rcx/legos/?n=4057 for more information.