Some adjustments to better automate process. Fixes google_perftools compile error.

Made the script automatically answer "yes" to some apt-get confirmations. Separating some commands onto their own lines since some were causing issues. Fixes an issue compiling perftools, which couldn't find libunwind. Adding the "--enable-frame-pointers" flag did the trick there.