Split frameworks to 2 parts , fix linkage issue