Add option to disable static libraries build