Removed nonfree library from libraries to link with
Improved thirdpartyConfig.py implementation