added option to build usenew in static mode