Add optional static compilation through config.groovy