added friend function in class cl_platform