Make compile with gcc 4.0.1 (friend doesn't work)

This might have something common with http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1016