update thirdparty libs
only use reference path when necessary
regenerate output