Compile with GCC 4.9.

It seems it doesn't handle inner template friends.