added option to update libararies during build (enabled by default in buildAndRunWithShell.sh)