sanitize 3rdparty lib configuration