I did a BUILD_MODULES=necko build on IRIX to test why FTP is broken. I had to make a bunch of changes to get it to build (some of which could be checked in, and some of which would break stuff if checked in). I also fixed a bunch of build warnings on IRIX. I'll attach my whole diff. I need to sort through it sometime.