Add installation of build dependencies

for Ubuntu Precise Pangolin and Mac Hombrew.