Added support for compiling static libraries and excluding specific libraries