Add configuration for pre-compiling as a static library