Add configuration for compiling as library