cmake: switch from using deprecated linklibraries to target_linklibraries

the total information duplication actually decreases and it
facilitates reusing CMake instructions from outer projects.
Merge pull request #29 from coroa/master

cmake: switch from using deprecated linklibraries to target_linklibraries