missing target_link_libraries commands for required libraries are added.

They are needed for compiling on Mac OS X.