Update prepare lib to a working version.