fix compilation (friend is reserved)