Make cbuilder optimizations optional