disable static build by default and other small cleanups in the build system