fixing #124 and some improvements to 3rdparty configuration