fix linking on qmake installations that use compile_libtool.
Merge pull request #1441 from niclasr/master

fix linking on qmake installations that use compile_libtool.