Use "friend class" when declaring a friend -- to compile with c++0x