Register compiler only if available.
Getting rid of the static constructor so the config gets initialized only once.