missing link flags for required libraries are added.