update libraries to latest.

also remove some unused libraries and re-organize others.