fix release mode compile settings