bootstrap.sh: install profiling and shared libs.

Fixes #2009.