Added some missing friend declarations needed for implicit conversions from compatible pointer types.