Fix compilation on Windows.

Apparently, the friend declaration needs to have the linkage specified
as well.

Change-Id: Ied1d8c6a69688d82dba041ec42cd2ede4da5a55e
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>