Add compilation flag to switch gc strategy