Allow passing -so or -build_shared_libs to buildall
Allow passing -so or -build_shared_libs to buildall

Default is to statically link, but specifying these flags will dynamically
link the executables.

Change-Id: Ic67a209b36285027e9b44e5fa491b197f443d84f
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3869
Reviewed-by: Marcel Kornacker <44592b4eea36663c86b994bb0ea99d15309c1c7d@cloudera.com>
Tested-by: jenkins

andybab/Impala,andybab/Impala,placrosse/ImpalaToGo,placrosse/ImpalaToGo,gistic/PublicSpatialImpala,AtScaleInc/Impala,gistic/PublicSpatialImpala,AtScaleInc/Impala,ImpalaToGo/ImpalaToGo,AtScaleInc/Impala,AtScaleInc/Impala,gistic/PublicSpatialImpala,andybab/Impala,ImpalaToGo/ImpalaToGo,placrosse/ImpalaToGo,ImpalaToGo/ImpalaToGo,gistic/PublicSpatialImpala,ImpalaToGo/ImpalaToGo,AtScaleInc/Impala,placrosse/ImpalaToGo,ImpalaToGo/ImpalaToGo,andybab/Impala,AtScaleInc/Impala,gistic/PublicSpatialImpala,gistic/PublicSpatialImpala,andybab/Impala,placrosse/ImpalaToGo,andybab/Impala,ImpalaToGo/ImpalaToGo,placrosse/ImpalaToGo