Build both with and without optimization.