Fix compile flags on release configuration.