Fix cmake warnings about mixed link types in target_links.

Fixed target_link_libraries to use LINK_PRIVATE/LINK_PUBLIC as
appropriate.

Change-Id: I331292174809258c420b0b56f5f79b2d1073ace5
Merge topic 'fix_cmake_warnings' into next

fed7bb16 Fix cmake warnings about mixed link types in target_links.