CONN-1212:Fix CONNECT build when build along with Direct profile