Remove unused libraries
Update build scripts.